import request from '@/utils/request'

// 查询外出申请列表
export function listGo_out(query) {
  return request({
    url: '/ehr/go_out/list',
    method: 'get',
    params: query
  })
}

// 查询外出申请详细
export function getGo_out(goOutId) {
  return request({
    url: '/ehr/go_out/' + goOutId,
    method: 'get'
  })
}

// 新增外出申请
export function addGo_out(data) {
  return request({
    url: '/ehr/go_out',
    method: 'post',
    data: data
  })
}

// 修改外出申请
export function updateGo_out(data) {
  return request({
    url: '/ehr/go_out',
    method: 'put',
    data: data
  })
}

// 删除外出申请
export function delGo_out(goOutId) {
  return request({
    url: '/ehr/go_out/' + goOutId,
    method: 'delete'
  })
}

// 提交外出申请审批
export function approvalGo_out(data) {
  return request({
    url: '/ehr/go_out/approval',
    method: 'post',
    data: data
  })
}
